#include"Comm.hpp"
int main()
{
    int wfd = open(Path,O_WRONLY);
    if(wfd<0){
        cout<<"open file fail"<<endl;
        exit(1);
    }
    string buffer;
    while(true)
    {
        getline(cin,buffer);
        if(buffer=="quit"){
            break;
        }
        write(wfd,buffer.c_str(),buffer.size());
    }
    close(wfd);
    return 0;
}